﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.TenderOffer
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt.TenderOffer;

    public class Map_TenderOfferDetail : EntityMapping<TenderOfferDetail>
    {
        public Map_TenderOfferDetail()
        {
            ManyToOne(x => x.TenderOffer, map =>
            {
                map.Column("OfferId");
            });

            ManyToOne(x => x.CfgDetail, map =>
            {
                map.Column("CfgDetailId");
            });

            ManyToOne(x => x.PE, map =>
            {
                map.Column("PEId");
            });

            Property(x => x.DetailValue);
        }
    }
}
